package com.yunshu.yunshuapp.tongxunlu;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.widget.ListView;

import com.yunshu.yunshuapp.R;

public class VCardsListActivity extends AppCompatActivity {

    private RecyclerView mList;
    private VCardsListAdaptor adapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_vcards_list);

        mList = (RecyclerView)findViewById(R.id.list_view);

        Bundle bundle = getIntent().getExtras();
        String[] urls =  bundle.getStringArray("imgUrls");

        adapter = new VCardsListAdaptor(this);
        adapter.activity = this;
        adapter.setModels(urls);
        mList.setAdapter(adapter);
    }
}
